import request from '@/utils/request'

// 查询培训项目列表
export function listStudentTrain(query) {
  return request({
    url: '/student/studentTrain/list',
    method: 'get',
    params: query
  })
}

// 查询培训项目详细
export function getStudentTrain(id) {
  return request({
    url: '/student/studentTrain/' + id,
    method: 'get'
  })
}

// 新增培训项目
export function addStudentTrain(data) {
  return request({
    url: '/student/studentTrain',
    method: 'post',
    data: data
  })
}

// 修改培训项目
export function updateStudentTrain(data) {
  return request({
    url: '/student/studentTrain',
    method: 'put',
    data: data
  })
}

// 删除培训项目
export function delStudentTrain(id) {
  return request({
    url: '/student/studentTrain/' + id,
    method: 'delete'
  })
}

// 导出培训项目
export function exportStudentTrain(query) {
  return request({
    url: '/student/studentTrain/export',
    method: 'get',
    params: query
  })
}